import request from "@/utils/request";


// 查询生成表数据
export function listTable(query) {
  return request({
    url: '/business/systable/list',
    method: 'get',
    params: query
  })
}

export function getGridOptions(tableId) {
  return request({
    url: '/business/systable/' + tableId,
    method: 'get'
  })
}

export function getUserGridOptions(userId, tableId) {
  return request({
    url: '/business/systable/user',
    method: 'get',
    params: {
      userId,
      tableId
    }
  })
}

export function updateUserGridOptions(userId, tableId, gridOptions) {
  return request({
    url: '/business/systable/user',
    method: 'post',
    data: {
      userId,
      tableId,
      gridOptions
    }
  })
}
